<?php
require_once 'client'.EXT;

class charts extends Client{
	
	function __construct()
	{
		parent::__construct();
	}
	
	function index()
	{
		$data	=	array(
			array("Cup Holder Pinion Bob",7),
			array("Generic Fog Lamp",9),
			array("HDTV Receiver",15),
			array("8 Track Control Module",12),
			array("xyz",40)
		);
		$xaxis	=	array(
			"label" => 	"X",
			"angel"		=>	""
		);
		
		$yaxis	=	array(
			"label" => 	"Y",
			"angel"		=>	""
		);
		$value	=	array(
			"data"	=>	$data,
			"xaxis"	=>	$xaxis,
			"yaxis"	=>	$yaxis,
			"title"	=>	"Test chart"
		);
		$this->data['value']		=	$value;
		$this->load->view('charts/index', $this->data);
	}

}